package cn.edu.nuc.fourth.services.interfaces;

import java.util.List;

import cn.edu.nuc.fourth.dto.PageInfo;
import cn.edu.nuc.fourth.model.Announce;

public interface AdminService {

	/**
	 * 公告分页
	 * 
	 * @param current
	 * @return
	 */
	public PageInfo announceList(Integer current);

	/**
	 * 公告添加
	 * 
	 * @param announce
	 * @return
	 */
	public Integer announceadd(Announce announce);

	/**
	 * 初始化一条数据
	 * 
	 * @param aid
	 * @return
	 */
	public Announce oneAnno(Integer aid);

	/**
	 * 修改
	 * 
	 * @param aid
	 * @return
	 */
	public Integer announceedit(Announce announce);

	/**
	 * 公告填状态
	 * 
	 * @param aid
	 * @param astate
	 * @return
	 */
	public Integer stateeidt(Announce announce);

	/**
	 * 滚动条公告
	 * 
	 * @param astate
	 * @return
	 */
	public List<Announce> ajaxlist(Integer astate);
}
